package xyz.comfyz.web.commons.security.model;


/**
 * @author :    comfy
 * @date :      2018-05-12 16:04:49
 * @since :     1.8
 * <p>
 * 权限token信息
 */
public class SecurityToken {

    private final String userId;
    private final String userName;
    private final boolean admin;

    public SecurityToken(String userId, String userName, boolean admin) {
        this.userId = userId;
        this.userName = userName;
        this.admin = admin;
    }

    public String getUserId() {
        return userId;
    }

    public String getUserName() {
        return userName;
    }

    public boolean isAdmin() {
        return admin;
    }
}
